<?php 
function dbConn(){		//	메인 DB 접속
	global $_DB_DNS, $_DB_LOGIN_ID, $_DB_LOGIN_PWD, $_DB_NAME;
	$conn = mysql_connect($_DB_DNS, $_DB_LOGIN_ID, $_DB_LOGIN_PWD) or die(' Db접속 불가능');
	mysql_select_db($_DB_NAME);
	mysql_query("set session character_set_connection=utf8;");
	mysql_query("set session character_set_results=utf8;");
	mysql_query("set session character_set_client=utf8;");
	
	return $conn;
}

function getCategory($dbConn){
	$query="SELECT cate_id, cate_name1 ";
	$query.="FROM nutrition_info ";
	$query.="ORDER BY cate_id ";
	$result = mysql_query($query, $dbConn) or die(echoString("MySQL Error : ".$query));
	return $result;
}
?>